import { message } from 'antd';
import { result_get } from '../service';
/**
 * 添加节点
 * @param fields
 */
const resultGet = async (params?: any) => {
  try {
    const t = await result_get({ ...params });
    if (t.code==200){
      return t.data.data;
    }else{
      if(t.msg){
      message.error(t.msg)
      return [{}];
      }else{
        message.error(t)
      return [{}];
      }
    }
  } catch (error) {
    message.error("程序出错")
  }
};

export default resultGet